|
|
|
|
|
|
|
Visual Basic Disadvantages |
|
|
|
|
|
|
|
|
Although it has many advantages, Visual Basic still has a few disadvantages. Most of these are related to some limitations of Visual Basic in getting at real low-level functionality in hardware and the operating system. The following is a list of some of these disadvantages: |
|
|
|
|
|
|
|
|
Runtime distribution requirements are larger than those for C/C++. |
|
|
|
|
|
|
|
|
Not as much functionality as C/C++ in getting to features of the OS. |
|
|
|
|
|
|
|
|
There are basically two kinds of programming languages: interpreted and compiled. Visual Basic lets you take advantage of both of these within one environment. This is one of the best features of Visual Basic. An interpreted language waits until runtime to translate the source code into machine language. A compiled language translates all the source code into machine code, all at one time. The advantage to using an interpreter is quick development time, whereas the advantage to using a compiled language is quick runtime execution. |
|
|
|
|
|
|
|
|
With Visual Basic, you have the best of both, because Visual Basic has the ability to run interpreted in the development environment but can compile the source into machine code for the final runtime. Visual Basic uses a modified version of an interpreted language called p-code. Lets take a look at the differences between a p-code executable and a natively compiled executable. |
|
|
|
|
|
|
|
|
Interpreted languages must translate each line of source code into machine language (ones and zeros) each time that line of code is executed. Therefore, if a line is executed 100 times, its translated 100 times. To write an interpreted language, you simply write the source, and then run it. Examples of interpreted languages are the old traditional GW-Basic and most batch languages. |
|
|
|
|
|
|
|
|
Compiled languages translate all the source code just once into machine language. To write a compiled application, you typically write the source code, compile and link the program, and then run the program. Examples of compiled languages are COBOL, Fortran, and C. |
|
|
|
|
|